Make debug levels more sensible.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 14 Nov 2002 05:17:08 +0000 (05:17 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 14 Nov 2002 05:17:08 +0000 (05:17 +0000)
gpsbabel/garmin.c

index dd969665a8e4cd51104a658d6c8596b20ed1a5fa..0e72b7c38a65bff1f6c362ae49c510b1277f7fe4 100644 (file)
@@ -29,11 +29,14 @@ static const char *portname;
 static void
 rw_init(const char *fname, const char *opts)
 {
-       if (global_opts.debug_level > 1)  {
+       if (global_opts.debug_level > 0)  {
                GPS_Enable_Warning();
                GPS_Enable_User();
                GPS_Enable_Diagnose();
        }
+       if (global_opts.debug_level > 1)  {
+               GPS_Enable_Diagnose();
+       }
        GPS_Enable_Error();
 
         if (GPS_Init(fname) < 0) {